package com.hqyj.fj.javaSpringBoot.modules.account.dao;

import com.hqyj.fj.javaSpringBoot.modules.account.entity.Resource;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.SearchBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ResourceDao  extends JpaRepository<Resource,Integer>, JpaSpecificationExecutor<Resource> {
    List<Resource> findResourcesByPermit(String permit);

}
